package com.woniu.controller;

import com.woniu.entity.CommunityOrder;
import com.woniu.service.CommunityOrderService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (CommunityOrder)表控制层
 *
 * @author makejava
 * @since 2020-03-26 18:24:40
 */
@RestController
@RequestMapping("communityOrder")
public class CommunityOrderController {
    /**
     * 服务对象
     */
    @Resource
    private CommunityOrderService communityOrderService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public CommunityOrder selectOne(Integer id) {
        return this.communityOrderService.queryById(id);
    }

}